package com.bknow.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import com.bknow.model.UserInfo;


@Service
public interface UserMapper {

	

	public UserInfo isUserExist(String uName);

	public UserInfo findUserByNameAndPwd(UserInfo userInfo);

	public UserInfo isEmailExist(String uEmail);

	public UserInfo isPhoneExist(String uPhone);

	public int regist(UserInfo userInfo);

	public UserInfo findUserByName(String uName);
	
	public int deleteUserByUid(Integer uId);//根据用户id删除用户

	public int updateUser(UserInfo userInfo);//根据id修改用户

	public int insertUser(UserInfo userInfo);//添加用户

	public int patchDeleteUser(String[] arr);//批量删除用户

	public List<UserInfo> findUserBystartLimit(@Param("start")int start, @Param("limit")int limit);//从start序列开始查询limit条数据

	public int findUserCount();//查找用户总数

}
